<?
if (isset($quotephoto)) 
	$quote = random_element($quotephoto);
else
	$quote = null;
?>


<div id="notTippedUser">
<strong>Das nächste Spiel haben <?=sizeof($notTippedUser)?> Tipper noch nicht getippt:</strong>
<?php $i=0;

foreach($notTippedUser as $user) {
	if ($i++ !== 0) { echo ", ".$user; } else echo $user;
}
?>

</div>

<table width="100%" cellpadding="2" cellspacing="2">

<thead><tr>
	<th><?=lang('forum_subject');?></th>
	<th><?=lang('forum_last_entry');?></th>
</tr></thead>
	
<tfoot></tfoot>

<tbody>

<?php $i=0; foreach($posts as $post): ?>

  <?php if ($i++ % 2 == 0) $class="odd"; else  $class="even"; ?>
  <tr class="<?=$class?>">
	
		<td><?=anchor("forum/entry/".$post->id, $post->subject);?></td>
		<td><?=$post->author;?> - <?=$post->posted;?></td>		
	</tr>
<?php endforeach; ?>
</tbody></table>

<?php if ($quote !== null):?>
<div class="quote-photo">
	<div class="img"><img border="0" src="<?=base_url();?>resources/quote-photos/<?=$quote[0]?>.jpg" /></div>
	<div class="quote"><?=$quote[1]?></div> 
</div>
<?php endif;?>
